package csw;

public class J12OOP {

	public static void main(String[] args) {
			J12ExCompany apple;
			apple = new J12ExCompany();
			
			J12ExEmployee taehui;
			 taehui = new J12ExEmployee();
			 
			 J12ExCompany google;
			 google = new J12ExCompany();
			 
			 J12ExEmployee suji;
			 suji = new J12ExEmployee();
			
			//sablis, bourgogne
			J12Ex3Wine  sablis;
			 sablis = new J12Ex3Wine();
			 
			 J12Ex3Wine bourgogne;
			 bourgogne = new J12Ex3Wine();
			 
			 //객체 생성을 한 라인에 선언
			 J12ExCompany a = new J12ExCompany();
			 J12ExEmployee b = new J12ExEmployee();
			 J12Ex3Wine c = new J12Ex3Wine();
			
	}

}

//회사 클래스
class J12ExCompany{
	String name;
	String dateCreated;
	
	public void paySalary (String name, int salary){

		
	}//paysalary
	
}

class J12ExEmployee{
	String name;
	String dateHired;
	int salary;
	
	public void checkSalary(){
		System.out.println(
				"현재 급여는 "+salary+"입니다");
	}
}

class J12Ex3Wine{
	
	String manufacturer;
	String name;
	String country;
	String region;
	String kind;
	int year;
	int grade;
	

}











